package com.example.demo.controller;

import com.example.demo.mapper.DeptMapper;
import com.example.demo.pojo.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {
    @Autowired
    DeptMapper deptMapper;

    @GetMapping("/find")
    public List<Dept> Test1(){
        return deptMapper.selectList(null);
    }
}
